<!--
 * @FilePath     : /study_code/layui/13-2-14.html
 * @Description  : title 定义 table 的大标题
 * @Date         : 2025-04-07 17:14:25
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-08 14:29:27
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <table id="demo" lay-filter="test"></table>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/table/common.js"></script>
    <script>
      var table = layui.table

      table.render({
        elem: '#demo',
        cols: cols,
        data: tableData,

        /**
         * @key title
         * @brief: 定义 table 的大标题
         * #在文件导出等地方会用到
         * @value {string} 任意字符串
         */
        title: '用户表',
        toolbar: 'default', // 启用头部默认工具栏 （点击右2的 “导出“按钮），导出为 "用户表".csv
      })
    </script>
  </body>
</html>
